<template>
	<div class="g-container">
		<div class="m-login-box">
			<div class="u-login-name u-login-item">
				<span>{{name}}</span>
			</div>
			<div class="m-login-form u-login-item">
				<el-form :model="form">
					<el-form-item>
						<el-input class="w-ipt" v-model="form.username" placeholder="请输入帐号"></el-input>
					</el-form-item>
					<el-form-item>
						<el-input class="w-ipt" v-model="form.password" placeholder="请输入密码"></el-input>
					</el-form-item>
				</el-form>
				<el-form-item>
					
				</el-form-item>
			</div>
		</div>

	</div>
</template>

<script>
	export default {
		data() {
			return {
				name: this.systemInfo.name,
				form: {
					username: '',
					password: ''
				}
			}
		},
		props: ['systemInfo'],
		watch: {
			systemInfo(val) {
				this.name = val;
			}
		},
		mounted() {
			this.name = localStorage.getItem('system_name');
		}
	}
</script>

<style scoped lang="scss">
	.m-login-box {
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		height: 100vh;
		padding: 0 0.4rem;

		.u-login-item {
			margin: 0.26rem;
		}

		.u-login-name {
			margin: 0.53rem;
			font-size: 0.53rem;
		}

	}
</style>
